<!DOCTYPE html>
<html lang="en">

<head>
    <link rel="shortcut icon" href="../img/logo.ico">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车页面
    </title>
    <style>
        .shoppingCar_box {
            width: 100%;
            font-size: 28px;
        }
        
        table {
            border-collapse: collapse;
        }
        
        .shoppingCar_list {
            width: 1350px;
        }
        
        .shoppingCar_list_thead {
            background-color: darkgrey;
        }
        
        .shoppingCar_list tr {
            display: flex;
            justify-content: space-between;
        }
        
        .shoppingCar_list td {
            text-align: center;
        }
        
        .shoppingCar_list_product {
            width: 100px;
            height: 128px;
        }
        
        .shoppingCar_list_product img {
            max-width: 100%;
            max-height: 100%;
        }
        
        .shoppingCar_list_message a {
            padding: 0;
            background: rgba(0, 0, 0, 0);
            display: inline-block;
            line-height: normal;
            vertical-align: middle;
            color: #00397e;
        }
        
        .shoppingCar_list_message button {
            background: #010101;
            color: #fff;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            width: 32px;
            height: 42px;
            line-height: 40px;
            padding: 0;
            display: inline-block;
            border-radius: 0;
            border: none;
        }
        
        .tr_1 {
            width: 8%;
        }
        
        .tr_2 {
            width: 40%;
        }
        
        .tr_3 {
            width: 10%;
        }
        
        .tr_4 {
            width: 18%;
        }
        
        .tr_5,
        .tr_6,
        .tr_7 {
            width: 8%;
        }
    </style>
</head>

<body>
    <header></header>
    <section>

        <div>
            <div class="shoppingCar_box">购物车</div>
            <div>

                <table class="shoppingCar_list">
                    <thead>
                        <tr class="shoppingCar_list_thead">
                            <th class="tr_1"><input type="checkbox" name="" id=""> 全选</th>
                            <th class="tr_2">已选择的商品</th>
                            <th class="tr_3">操作</th>
                            <th class="tr_4">数量</th>
                            <th class="tr_5">价格</th>
                            <th class="tr_6">优惠</th>
                            <th class="tr_7">总计</th>
                        </tr>
                    </thead>

                    <tbody>
                        <tr class="shoppingCar_list_message">
                            <td class="tr_1"><input type="checkbox" name="" id=""></td>
                            <td class="tr_2">
                                <div class="shoppingCar_list_product"><img src="../img/m1.jpg" alt=""></div>
                            </td>
                            <td class="tr_3"><a>收藏</a><span>|</span><a>移除</a></td>
                            <td class="tr_4"><button>-</button><span>1</span><button>+</button></td>
                            <td class="tr_5">价格</td>
                            <td class="tr_6">优惠</td>
                            <td class="tr_7">总计</td>
                        </tr>
                    </tbody>





                </table>
            </div>
        </div>
    </section>
    <footer></footer>
</body>

</html>
<script src="jQuery.js">
</script>
<script>
    $("header").load("header.html");
    $("footer").load("footer.html");
    console.log($(".tr_1").eq(0))


    $(".tr_1").eq(0).click(
        function() {
            $(".tr_1").eq(1).css("checked", "true")
        }

    )
</script>